import my.xh.excel.annotation.CellConf;
import my.xh.excel.annotation.CellFont;
import my.xh.excel.core.TemplateModel;
import my.xh.excel.enums.CountTypeEnum;

import java.util.Date;

/**
 * @Auther: xh
 * @Date: 2019/7/28 06:49
 * @Description:
 */
public class UserTemplateModel extends TemplateModel<User> {

    @CellConf(value = "用户名", index = 0, columnWidth = 50, alignment = "CENTER", font = @CellFont(isItalic = true))
    private String username;
    @CellConf(value = "密码", index = 1, fillForegroundColor = 10, alignment = "RIGHT", columnWidth = 50)
    private String password;
    @CellConf(index = 2
            //, valueConverterClasses = {MyValueConverter.class}
            , countTypes = {CountTypeEnum.AVG, CountTypeEnum.MAX, CountTypeEnum.MIN, CountTypeEnum.SUM}
            )
    private Integer age;
    @CellConf(index = 3)
    private Date birthDay;

    @CellConf(font = @CellFont(height = 20), alignment = "CENTER",value ="你的标题")
    public String MAIN_TITLE;



}
